﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace XRoute.DataExchange
{
    [DataContract(Name = "Map", Namespace = Contracts.Namespace)]
    public class MapContract
    {
        ///////////////////////////////////////////////////////////////////////

        [DataMember(Name = "Nodes")]
        readonly NodeContract[][] _nodes;


        ///////////////////////////////////////////////////////////////////////

        public MapContract(NodeContract[][] nodes)
        {
            _nodes = nodes;
        }

        public NodeContract[][] Nodes
        {
            get { return _nodes; }
        }
    }
}
